package com.p900.website.repository;

import com.p900.commons.domain.Product;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created by lenovo on 2015/5/2.
 */
public interface ProductRepository extends PagingAndSortingRepository<Product, Long> {

    public Page<Product> findByPlatformId(Long platformId, Pageable pageable);

    public Page<Product> findByNameLike(String name, Pageable pageable);
}
